/**
 * @author kristian
 */

var grid_Options = {
}

function drawTextureOverlays(ctx) {
    if (grid1_on) {
        drawGrid(ctx, grid_Options.grid1);
    }

    if (grid2_on) {
        drawGrid(ctx, grid_Options.grid2);
    }
    
    if (grid3_on) {
        drawGrid(ctx, grid_Options.grid3);
    }	
	if (coords_on) {
		drawHexCoordinates(ctx, grid_Options.grid1);
	}
	if (compass_on) {
		drawCompass(ctx, compass_corner);
	}

}

function draw(){
    if (ctx) {
        ctx.clearRect(0, 0, 600, 600); // clear canvas     
        drawTextures(ctx, grid_Options.grid1);	
		drawTextureOverlays(ctx);
    }
}
